# Program to Simulate Fraud Transactions
import random,sys

class transaction:
  #Class Variables
  date=None;
  id=0;
  amount=10.20;
  mcc=4529
  countryCode='840'
  cardpresent='N'
  eComm='N'
  confFraud=False;
  r = random.Random( 98765);

  def __init__(self): #object constructor
    
    self.amount=self.r.uniform( 0.0, 7000 );
    self.mcc=int ( self.r.uniform(3000,5000) ) ;
    self.confFraud= self.r.uniform( True , False );
    

def main():
  print 'Hello'
  for rep in range ( 100 ):
    t=transaction();
    t.id=rep;
    print 'Trans id= ', t.id, 'amount=', t.amount, 'mcc=', t.mcc , "confFraud =" , t.confFraud


if __name__ == '__main__': main()